<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>ES后台管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="__ADMIN__/css/frame.css" media="all" />
	<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>
    
	
	
</head>
<body class="childrenBody" style="padding-bottom:40px;">


<style type="text/css">
.tpt_sels a{padding-right:15px;position:relative}
.tpt_sels a{padding:0 20px 0 8px;color:#3B6268;background:#FFFFBA;border:1px #F8E06E solid;margin-right:5px;margin-bottom:5px;font-size:14px;height:26px;line-height:26px;display:block;float:left}
.tpt_sels a em{width: 12px;height: 12px;font-style: normal;display: block;position: absolute;top: 7px;right: 4px;z-index: 2;background: url(__ADMIN__/images/sx.png) no-repeat 0 0;}
</style>

    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
                      <?php if(is_array($config_group_list)): $i = 0; $__LIST__ = $config_group_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                  <?php if($group != $key): ?>
                     <li><a href="<?php echo es_url('setting',array('group' => $key)); ?>"><?php echo $vo; ?></a></li>
                         <?php else: ?>
                     <li class="layui-this"><a><?php echo $vo; ?></a></li>
                  <?php endif; ?>
              <?php endforeach; endif; else: echo "" ;endif; ?>
        
        </ul>
         
        
        <form class="layui-form form-container layui-tab-content" data-url="<?php echo es_url('setting'); ?>"  localtion-url="<?php echo es_url('setting'); ?>" >
               <?php if(!empty($list)): ?>
                        <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
    <div class="layui-form-item">
   
    <label class="layui-form-label"><?php echo $vo['title']; ?></label>
    <div class="layui-input-inline">
    
      <?php switch($vo['type']): ?><?php case "0": ?>
<input type="text" name="config[<?php echo $vo['name']; ?>]" required  lay-verify="required" value="<?php echo $vo['value']; ?>" autocomplete="off" class="layui-input">
                                         

                                        <?php break; ?>

                                        <?php case "1": ?>

                                            <input class="layui-input" name="config[<?php echo $vo['name']; ?>]" placeholder="请输入设置值" value="<?php echo $vo['value']; ?>" type="text">

                                        <?php break; ?>

                                        <?php case "2": ?>

                                            <textarea class="layui-textarea" name="config[<?php echo $vo['name']; ?>]" rows="3" placeholder="请输入设置值"><?php echo $vo['value']; ?></textarea>

                                        <?php break; ?>

                                        <?php case "3": ?>

                                            <textarea class="layui-textarea" name="config[<?php echo $vo['name']; ?>]" rows="3" placeholder="请输入设置值"><?php echo $vo['value']; ?></textarea>

                                        <?php break; ?>

                                        <?php case "4": ?>

                                            <select name="config[<?php echo $vo['name']; ?>]" class="layui-input">
                                                <?php $_result=parse_config_attr($vo['extra']);if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($i % 2 );++$i;?>
                                                    <option value="<?php echo $key; ?>" <?php if($vo['value'] == $key): ?> selected <?php endif; ?> ><?php echo $vv; ?></option>
                                                <?php endforeach; endif; else: echo "" ;endif; ?>
                                            </select>

                                        <?php break; ?>

                                    <?php endswitch; ?>
    </div>
   
    <?php if(!empty($vo['describe'])): ?>
   <div class="layui-form-mid layui-word-aux"><?php echo $vo['describe']; ?></div>
                                    <?php endif; ?>

  </div>
                            

                        <?php endforeach; endif; else: echo "" ;endif; ?>
                            <?php else: ?>
                            
                            <div class="layui-form-item">
                                <?php echo config('empty_list_describe'); ?>
                            </div>
                    <?php endif; ?>
         
                   <div class="btable-paged" >
                 <div class="layui-main">
                    <div class="formbtngroup">
<button  class="layui-btn layui-btn-sm" lay-submit="" lay-filter="formadd">提交</button>
<button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
</div>
</div>
     </div>        
                  </form>
       
        
          
    </div>
    
  


	
	
	<script type="text/javascript" src="__ADMIN__/js/main.js"></script>
		
	
<!--页面JS脚本-->

</body>
</html>